using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.Staff
{
    public interface IDepartmentAppService
    {
        Task<DepartmentDto> GetAsync(Guid id);
        Task<DepartmentDto> FindAsync(string filter);
        Task<DepartmentDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<DepartmentDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<DepartmentDto>> QueryAsync(FilterGroupRequestDto input);
        Task<ListResultDto<DepartmentDto>> GetChildrenAsync(Guid? parentId, bool recursive = false);
        Task<DepartmentDto> CreateAsync(DepartmentCreateDto input);
        Task<DepartmentDto> UpdateAsync(Guid id, DepartmentUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}